const { mongo } = require('../mongodb')
const mongoosePaginate = require('mongoose-paginate-v2')

const Behavior = new mongo.Schema(
  {
    username: {
      type: String,
      unique: true
    },
    attitude: Number,
    motivation: Number,
    perseverance: Number,
    efficiency: Number
  }, { collection: 'behavior' }
)
Behavior.plugin(mongoosePaginate)
module.exports = mongo.model('behavior', Behavior)
